package fu.capstone.hanoicityguide.business.bo.tourprovider;

import java.util.ArrayList;

import android.content.Context;
import fu.capstone.hanoicityguide.business.model.Tour;
import fu.capstone.hanoicityguide.business.model.TourProvider;
import fu.capstone.hanoicityguide.dataaccess.tourprovider.TourProviderDAO;
import fu.capstone.hanoicityguide.dataaccess.tourprovider.TourProviderDAOImp;

public class TourProviderBOImp implements TourProviderBO {

	private Context context;

	private TourProviderDAO dao;

	public Context getContext() {
		return context;
	}

	public void setContext(Context context) {
		this.context = context;
	}

	public TourProviderBOImp() {

	}

	public TourProviderBOImp(Context ctx) {
		this.context = ctx;
		dao = new TourProviderDAOImp(context);
	}

	@Override
	public ArrayList<TourProvider> listTourProvider(String sorter) {
		// TODO Auto-generated method stub
		return dao.listTourProvider(sorter);
	}

	@Override
	public ArrayList<TourProvider> searchTourProvider(String keyword,
			String sorter) {
		// TODO Auto-generated method stub
		return dao.searchTourProvider(keyword, sorter);
	}

	@Override
	public ArrayList<Tour> browseTourProvider(int tourProviderId,
			String keyword, String sorter) {
		// TODO Auto-generated method stub
		return dao.browseTourProvider(tourProviderId, keyword, sorter);
	}

}
